#include "calibrationlightsettingform.h"
#include "ui_calibrationlightsettingform.h"
#include <QPainter>
#include <QStyleOption>

CalibrationLightSettingForm::CalibrationLightSettingForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::CalibrationLightSettingForm)
{
    ui->setupUi(this);
    this->setFixedHeight(370);
    this->setProperty("form","backgroundform");
    ui->leftBorderForm->SetLabelIcon("lightsettingform");
    ui->leftBorderForm->UpdateShowType(3);
}

CalibrationLightSettingForm::~CalibrationLightSettingForm()
{
    delete ui;
}

void CalibrationLightSettingForm::paintEvent(QPaintEvent *event)
{
    QStyleOption opt;
    opt.init(this);
    QPainter painter(this);
    style()->drawPrimitive(QStyle::PE_Widget,&opt,&painter,this);
    QWidget::paintEvent(event);
}
